import http from '@/util/http'

export function delColumn (id) {
  return http.delete(`/column?id=${id}`)
}

export function repeatColumn (params) {
  return http.get(`/column/repeat?${params}`)
}

export function columnList (search, current, pageSize) {
  return http.post(`/column/get?pageNo=${current}&pageSize=${pageSize}`, search)
}

export function addColumn (data) {
  return http.post('/column', data)
}

export function updateColumn (data) {
  return http.put('/column', data)
}
